package com.loie.xcx.mapper;

import com.loie.xcx.model.bo.QuotationBO;
import com.loie.xcx.model.bo.QuotationLineBO;
import com.loie.xcx.model.dto.QuotationLineQueryDTO;
import com.loie.xcx.model.dto.QuotationQueryDTO;

import java.util.List;

/**
 * @author zhl
 */
public interface QuotationMapper {
    List<QuotationBO> getQuotationList(QuotationQueryDTO dto);

    int getQuotationListTotal(QuotationQueryDTO dto);

    QuotationBO getQuotation(QuotationQueryDTO dto);

    List<QuotationLineBO> getQuotationLineList(QuotationQueryDTO dto);

    int getQuotationLineListTotal(QuotationQueryDTO dto);

    QuotationLineBO getQuotationLine(QuotationLineQueryDTO dto);

    QuotationLineBO getQuotationLinePhoto(QuotationLineQueryDTO dto);

    int insertQuotation(QuotationBO quotationBO);

    int insertQuotationLine(QuotationLineBO quotationLineBO);

    int updateQuotation(QuotationBO quotationBO);


    int deleteQuotation(QuotationBO quotationBO);


    int deleteQuotationLineAll(String parentId);

    int getCompleteQuotationNum(String openId);

    int getInCompleteQuotationNum(String openId);
}
